/*
 * LitePlayerCore.cpp
 *
 *  Created on: 2016年10月8日
 *      Author: zhengboyuan
 */

#include "LitePlayerCore.h"
#include "CFileMediaSink.h"

namespace av
{

static	MediaSourceFactoryPtr s_sourceFactory;

LitePlayerCore::LitePlayerCore()
{
}

LitePlayerCore::~LitePlayerCore()
{
}


void LitePlayerCore::setMediaSourceFactory(MediaSourceFactoryPtr factory)
{
	s_sourceFactory = factory;
}

MediaSourceFactoryPtr LitePlayerCore::getMediaSourceFactory()
{
	return s_sourceFactory;
}

FileMediaSinkPtr LitePlayerCore::createFileMediaSink(const char* filename)
{
	FileMediaSinkPtr sink(new CFileMediaSink());
	if (!sink->open(filename))
	{
		sink.reset();
	}
	return sink;
}




} /* namespace av */
